package java.com.ktjy.service.impl;

import com.ktjy.dao.NewsDao;
import java.com.ktjy.dao.impl.NewsDaoImpl;
import java.com.ktjy.factory.SimpleDaoFactory;
import com.ktjy.pojo.News;
import com.ktjy.service.NewsService;

public class NewsServiceImpl implements NewsService {
    private NewsDao dao;

    public void setDao(NewsDao dao){
        this.dao = dao;
    }

    @Override
    public void save(News news) {
        dao.save(news);
    }
}
